import request from '@/utils/request'
// 列表
export function getList(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_select',
        method: 'post',
        data: data
    })
}

export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 获取已配置的门店列表
export function get_check_store_list(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_mapping_select',
        method: 'post',
        data: data
    })
}
// 保存门店
export function saveStore(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_mapping_submit',
        method: 'post',
        data: data
    })
}
// 状态
export function state(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_enable',
        method: 'post',
        data: data
    })
}

// 新增编辑保存
export function savePackage(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_add',
        method: 'post',
        data: data
    })
}
// 删除
export function delPackage(data) {
    return request({
        url: '/Operations_vouchers_config/vouchers_delete',
        method: 'post',
        data: data
    })
}
//商品口碑详情
export function product(data) {
    return request({
        url: '/Operations_vouchers_config/product_info',
        method: 'post',
        data: data
    })
}